how to create a temporary directory in python